DispatchMouseEventRequest

data class DispatchMouseEventRequest(type: String, x: Double, y: Double, modifiers: Int?, timestamp: TimeSinceEpoch?, button: MouseButton?, buttons: Int?, clickCount: Int?, force: Double?, tangentialPressure: Double?, tiltX: Int?, tiltY: Int?, twist: Int?, deltaX: Double?, deltaY: Double?, pointerType: String?)

Represents request frame that can be used with Input#dispatchMouseEvent operation call.

Dispatches a mouse event to the page.

See also

Constructors

DispatchMouseEventRequest
Link copied to clipboard
fun DispatchMouseEventRequest(type: String, x: Double, y: Double, modifiers: Int? = null, timestamp: TimeSinceEpoch? = null, button: MouseButton? = null, buttons: Int? = null, clickCount: Int? = null, force: Double? = null, tangentialPressure: Double? = null, tiltX: Int? = null, tiltY: Int? = null, twist: Int? = null, deltaX: Double? = null, deltaY: Double? = null, pointerType: String? = null)

Properties

button
Link copied to clipboard
val button: MouseButton? = null
Mouse button (default: "none").
buttons
Link copied to clipboard
val buttons: Int? = null
A number indicating which buttons are pressed on the mouse when a mouse event is triggered.
clickCount
Link copied to clipboard
val clickCount: Int? = null
Number of times the mouse button was clicked (default: 0).
deltaX
Link copied to clipboard
val deltaX: Double? = null
X delta in CSS pixels for mouse wheel event (default: 0).
deltaY
Link copied to clipboard
val deltaY: Double? = null
Y delta in CSS pixels for mouse wheel event (default: 0).
force
Link copied to clipboard
val force: Double? = null
The normalized pressure, which has a range of 0,1 (default: 0).
modifiers
Link copied to clipboard
val modifiers: Int? = null
Bit field representing pressed modifier keys.
pointerType
Link copied to clipboard
val pointerType: String? = null
Pointer type (default: "mouse").
tangentialPressure
Link copied to clipboard
val tangentialPressure: Double? = null
The normalized tangential pressure, which has a range of -1,1 (default: 0).
tiltX
Link copied to clipboard
val tiltX: Int? = null
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range -90,90, a positive tiltX is to the right (default: 0).
tiltY
Link copied to clipboard
val tiltY: Int? = null
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range -90,90, a positive tiltY is towards the user (default: 0).
timestamp
Link copied to clipboard
val timestamp: TimeSinceEpoch? = null
Time at which the event occurred.
twist
Link copied to clipboard
val twist: Int? = null
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0).
type
Link copied to clipboard
val type: String
Type of the mouse event.
x
Link copied to clipboard
val x: Double
X coordinate of the event relative to the main frame's viewport in CSS pixels.
y
Link copied to clipboard
val y: Double
Y coordinate of the event relative to the main frame's viewport in CSS pixels.

Sources

jvm source
Link copied to clipboard